import request from '@/router/axios'

export function fetchPrescriptionList(query) {
  return request({
    url: '/eims/eimsoutpatientprescription/page',
    method: 'get',
    params: query
  })
}

export function addEimsOutpatientPrescriptionObj(obj) {
  return request({
    url: '/eims/eimsoutpatientprescription',
    method: 'post',
    data: obj
  })
}

export function getPrescriptionObj(id) {
  return request({
    url: '/eims/eimsoutpatientprescription/' + id,
    method: 'get'
  })
}

export function delEimsOutpatientPrescriptionObj(id) {
  return request({
    url: '/eims/eimsoutpatientprescription/' + id,
    method: 'delete'
  })
}

export function putEimsOutpatientPrescriptionObj(obj) {
  return request({
    url: '/eims/eimsoutpatientprescription',
    method: 'put',
    data: obj
  })
}
